package report

import (
	"context"
	"git.mycaigou.com/gfyx/micro-gfyx-oppty-service/infrastructure/common/utils"
	pb "git.mycaigou.com/gfyx/micro-gfyx-oppty-service/proto/micro_gfyx_oppty_service_proto/micro-gfyx-oppty-service/clue"
)

type GfyxReportReposIface interface {
	GetMyReportList(ctx context.Context, request *pb.GetReportListRequest) ([]*GfyxReport, error)
	GetMyReportListCount(ctx context.Context, request *pb.GetReportListRequest) (int64, error)
	TestTenantDbEnable(ctx context.Context, request *pb.TestTenantDbEnableRequest) (int64, error)
	// GetReportList 查询列表
	GetReportList(ctx context.Context, condition map[string]interface{}, pageInfo *utils.PageInfo) (int64, []*GfyxReport, error)
	GetReport(ctx context.Context, reportId string) (*GfyxReport, error)
	ReportCount(ctx context.Context, condition map[string]interface{}) (int64, error)
	//GetReportByCondition 根据条件获取报备信息
	GetReportByCondition(ctx context.Context, condition map[string]interface{}) (*GfyxReport, error)
	SaveReport(ctx context.Context, report *GfyxReport) (int64, error)
	// 负责人的用户列表
	GetUserList(ctx context.Context) ([]*ResponsibleUser, error)
}
